package learningThread.api.commonAndNot;

public class MyRunable implements Runnable{

    private int count = 5;

    public  void run() {
        synchronized(this) {
            count--;
        }
        System.out.println("线程："+Thread.currentThread().getName()+" ，实现Runnable接口：count"+count);
    }
}
